package com.hxkj.client.service;

import com.hxkj.client.UserClientConfig;
import com.platform.common.domain.result.ResultDataStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.RequestPart;
import java.util.List;


/**
* @author Mr.zheng
* @Description 图片批量上传
* @Date 19:55 2018/6/5
* @Param MultipartFile[] file
* @return ResultDataStruct<List<String>>
**/
@FeignClient(name = "cms-management")
//,configuration = UserClientConfig.class
public interface ImgServiceClient {
    
    /**
    * @author Mr.zheng
    * @Description uploadImg 图片上传
    * @Date 8:46 2018/6/6
    * @Param [file]
    * @return com.platform.common.domain.result.ResultDataStruct<java.util.List<java.lang.String>>
    **/
    @RequestMapping(method = RequestMethod.POST, value = "/img/upload",consumes  ="application/json;charset=UTF-8")
    ResultDataStruct<List<String>> uploadImg(@RequestPart(value = "file") MultipartFile[] file);

}


